<template>
  <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[500px] h-[400px] bg-slate-500 rounded-lg">
    <h2 class="my-5 mx-auto w-fit text-3xl">后台管理系统</h2>
    <el-form :model="formLabelAlign" class="mx-auto  w-[300px]  ">
      <el-form-item>
        <template v-slot:label>
          <div class="text-slate-50">账户</div>
        </template>
        <el-input v-model="formLabelAlign.name" />
      </el-form-item>
      <el-form-item>
        <template v-slot:label>
          <div class="text-slate-50">密码</div>
        </template>
        <el-input v-model="formLabelAlign.region" />
      </el-form-item>

    </el-form>
    <el-button type="primary" @click="GoHome" class="w-[260px] block absolute right-[100px]">登录</el-button>
  </div>
</template>
  
<script lang="ts" setup>
import { reactive } from 'vue'

import { useRouter } from 'vue-router';
const router = useRouter();
const GoHome = () => {
  router.push({ path: '/HomeView/User' })

}
const formLabelAlign = reactive({
  name: '',
  region: '',
})
</script>

  